﻿using System;

namespace LegendHub.IO
{
    /// <summary>
    /// 程序路径助手
    /// </summary>
    public static class DirHelper
    {
        private static string _strRootDirPath = "";

        /// <summary>
        /// 程序根目录
        /// </summary>
        public static string RootDir
        {
            get
            {
                if (!string.IsNullOrEmpty(_strRootDirPath))
                {
                    return _strRootDirPath;
                }
                return AppDomain.CurrentDomain.BaseDirectory;
            }
            set { _strRootDirPath = value; }
        }
    }
}